import { post } from "@/utils/request"

export const getRoleInfo = (data: any) => post<any>("/api/roles/getRoles", data)
export const addRole = (data: any) => post<any>("/api/roles/addRole", data)
export const updateRole = (data: any) =>
  post<any>("/api/roles/updateRole", data)
export const updateRoleStatus = (data: any) =>
  post<any>("/api/roles/updateRoleStatus", data)
export const deleteRole = (data: any) =>
  post<any>("/api/roles/deleteRole", data)
